export const agConfig = [
	{
		headerName:'索引',
		valueGetter:'node.id',
		filter:false,
		floatingFilter:false,
		width:80
	},
	{
 		headerName: '机构昵称',
 		field: 'name',
 		resizable: true,
 		filter: 'agTextColumnFilter',
 		floatingFilter: true,

 	},
 	{
 		headerName: '联系手机',
 		field: 'mobile',
 		resizable: true,
 		filter: 'agTextColumnFilter',
 		floatingFilter: true,
 		cellRenderer: params => {
 			return `
                  <span style="color: #007bff">
                    ${params.value}
                  </span>
              `
 		},
 		scopedSlots: {
 			customRender: 'mobile'
 		},
 	},
 	{
 		headerName: '负责人',
 		field: 'note',
 		width: 100,
 		filter: 'agTextColumnFilter',
 		resizable: true,
 		scopedSlots: {
 			customRender: 'note'
 		},
 	},
	{
		headerName: '区域',
		field: 'area',
		resizable: true,
		cellRenderer: 'cucity',
		filter:'cityFilter',
		suppressMenu:true,
		floatingFilterComponent: 'cityFilterFloting',
		floatingFilter: true,
		// suppressMenu: true,
		floatingFilterComponentParams: {
			suppressFilterButton: true,
			color: 'red',
		},
		
		width: 250,
		scopedSlots: {
			customRender: 'area'
		}
	},
 	{
 		headerName: '授权结束日期',
 		filter: 'agDateColumnFilter',
 		field: 'end_time',
 		// cellRenderer: 'cudateform',
 		resizable: true,
 		width: 200,
 		scopedSlots: {
 			customRender: 'end_time'
 		},
 	},
 	{
 		headerName: '机构状态',
 		field: 'status',
 		resizable: true,
 		cellRenderer: 'mecstatus',
 		// cellEditor: 'mecstatusEditor',
 		cellEditor: 'agRichSelectCellEditor',
 		cellEditorPopup: true,
 		floatingFilterComponent: 'mecstatusSearchFloting',
 		floatingFilter: true,
 		suppressMenu: true,
 		filter: 'mecstatusSearch',
 		floatingFilterComponentParams: {
 			suppressFilterButton: true,
 			color: 'red',
 		},

 		cellEditorParams: {
 			values: ['0', '1', '2'],
 			cellRenderer: 'mecstatus',
 			cellEditorPopup: true,
 		},

 		scopedSlots: {
 			customRender: 'status'
 		},
 	},
 	{
 		headerName: '地址',
 		field: 'address',
 		resizable: true,
		filter:'agTextColumnFilter',
		floatingFilter:true,
 		scopedSlots: {
 			customRender: 'address'
 		}
 	},

 	{
 		headerName: '创建日期',
 		field: 'create_time',
 		resizable: true,
		filter:false,
 		width: 200,
 		// cellRenderer: 'cudateform',
 		scopedSlots: {
 			customRender: 'create_time'
 		},
 	}
 
 ]
